<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改实有单位基本信息')"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <th:block th:include="include :: ztree-css"/>
</head>
<body class="white-bg" onload="gradeChange()">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <i class="fa fa-info-circle"></i> 实有单位
                </div>
                <div class="panel-body">
                    <form class="form-horizontal m" id="form-unit-edit" th:object="${unit}">
                        <input name="zagldwbm" th:field="*{zagldwbm}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">单位名称：</label>
                            <div class="col-sm-8">
                                <input name="dwmc" th:field="*{dwmc}" class="form-control" type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">单位分类：</label>
                            <div class="col-sm-8">
                                <select name="gaglDwfl" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SQJW_FWSSZT')}" required>
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{gaglDwfl}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">实际名称：</label>
                            <div class="col-sm-8">
                                <input name="sjmc" th:field="*{sjmc}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位英文名称：</label>
                            <div class="col-sm-8">
                                <input name="dwywmc" th:field="*{dwywmc}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位英文缩写：</label>
                            <div class="col-sm-8">
                                <input name="dwywsx" th:field="*{dwywsx}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位类型：</label>
                            <div class="col-sm-8">
                                <select name="dwlxdm" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SQJW_DWLX_2')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{dwlxdm}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">经济类型：</label>
                            <div class="col-sm-8">
                                <select name="jjlxdm" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SQJW_JJLX')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{jjlxdm}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">行业类别：</label>
                            <div class="col-sm-8">
                                <select name="hylbdm" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SWJG_DWSSHY')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{hylbdm}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">开业日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="kyrq" th:value="${#dates.format(unit.kyrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">停业日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="tyrq01" th:value="${#dates.format(unit.tyrq01, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">主营：</label>
                            <div class="col-sm-8">
                                <input name="jyfwzy" th:field="*{jyfwzy}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">兼营：</label>
                            <div class="col-sm-8">
                                <input name="jyfwjy" th:field="*{jyfwjy}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">经营面积：</label>
                            <div class="col-sm-8">
                                <input name="jymjMjpfm" th:field="*{jymjMjpfm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">经营方式：</label>
                            <div class="col-sm-8">
                                <input name="jyfs" th:field="*{jyfs}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否有营业执照：</label>
                            <div class="col-sm-8">
                                <select name="sfyyyzz" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SFZD_DQJC')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{sfyyyzz}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照号：</label>
                            <div class="col-sm-8">
                                <input name="yyzzh" th:field="*{yyzzh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照_起始日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="yyzzyxqQsrq"
                                           th:value="${#dates.format(unit.yyzzyxqQsrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照_截止日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="yyzzyxqJzrq"
                                           th:value="${#dates.format(unit.yyzzyxqJzrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注册资金万元：</label>
                            <div class="col-sm-8">
                                <input name="zczb" th:field="*{zczb}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系电话：</label>
                            <div class="col-sm-8">
                                <input name="lxdh" th:field="*{lxdh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">省市县区：</label>
                            <div class="col-sm-8">
                                <input name="dwdzSsxqdm" th:field="*{dwdzSsxqdm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">详细地址：</label>
                            <div class="col-sm-8">
                                <input name="dwdzQhnxxdz" th:field="*{dwdzQhnxxdz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网址：</label>
                            <div class="col-sm-8">
                                <input name="wz" th:field="*{wz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">标签：</label>
                            <div class="col-sm-8">
                                <input name="bq" th:value="${bq}" type="hidden">
                                <input id="labelName" th:value="${labelNames}" class="form-control" type="text"
                                       readonly>
                                <div id="tree" class="ztree" style="border: 1px solid #e5e6e7"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">代表人公民身份号码：</label>
                            <div class="col-sm-8">
                                <input name="fddbrGmsfhm" th:field="*{fddbrGmsfhm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法定代表人姓名：</label>
                            <div class="col-sm-8">
                                <input name="fddbrXm" th:field="*{fddbrXm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法定代表人证件种类：</label>
                            <div class="col-sm-8">
                                <select name="fddbrCyzjdm" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SQJW_ZJZL2')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{fddbrCyzjdm}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法定代表人证件号码：</label>
                            <div class="col-sm-8">
                                <input name="fddbrZjhm" th:field="*{fddbrZjhm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法定代表人外文姓：</label>
                            <div class="col-sm-8">
                                <input name="fddbrWwx" th:field="*{fddbrWwx}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法定代表人外文名：</label>
                            <div class="col-sm-8">
                                <input name="fddbrWwm" th:field="*{fddbrWwm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">法定代表人联系电话：</label>
                            <div class="col-sm-8">
                                <input name="fddbrLxdh" th:field="*{fddbrLxdh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">重点单位标识：</label>
                            <div class="col-sm-8">
                                <input name="zddwbs" th:field="*{zddwbs}" class="form-control" type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">单位管理级别：</label>
                            <div class="col-sm-8">
                                <input name="dwgljb" th:field="*{dwgljb}" class="form-control" type="text" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否九小场所：</label>
                            <div class="col-sm-8">
                                <select name="sfjxcs" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SFZD_DQJC')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{sfjxcs}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">九小场所分类：</label>
                            <div class="col-sm-8">
                                <select name="jxcsfl" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SQJW_JXCSFL')}" required>
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{jxcsfl}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">公安机关名称：</label>
                            <div class="col-sm-8">
                                <input name="djdwGajgmc" th:field="*{djdwGajgmc}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">登记人账号：</label>
                            <div class="col-sm-8">
                                <input name="djrZh" th:field="*{djrZh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">登记人姓名：</label>
                            <div class="col-sm-8">
                                <input name="djrXm" th:field="*{djrXm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">登记时间：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="djsj" th:value="${#dates.format(unit.djsj, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">更新账户：</label>
                            <div class="col-sm-8">
                                <input name="gxzh" th:field="*{gxzh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">更新部门：</label>
                            <div class="col-sm-8">
                                <input name="gxbm" th:field="*{gxbm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">核录部门：</label>
                            <div class="col-sm-8">
                                <input name="hlbm" th:field="*{hlbm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">核录时间：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="hlsj" th:value="${#dates.format(unit.hlsj, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">核录人：</label>
                            <div class="col-sm-8">
                                <input name="hlr" th:field="*{hlr}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">核录标识：</label>
                            <div class="col-sm-8">
                                <select name="hlbz" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('YBSS_HLBZ')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{hlbz}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">最近检查合格标志：</label>
                            <div class="col-sm-8">
                                <input name="zjjchgbz" th:field="*{zjjchgbz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">下次检查日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="xcjcrq" th:value="${#dates.format(unit.xcjcrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">检查账户：</label>
                            <div class="col-sm-8">
                                <input name="jczh" th:field="*{jczh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">数据来源：</label>
                            <div class="col-sm-8">
                                <select name="sjly" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('YBSS_SJLY')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{sjly}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">安全出入口通道数：</label>
                            <div class="col-sm-8">
                                <input name="aqcrktds" th:field="*{aqcrktds}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">从业人员总数：</label>
                            <div class="col-sm-8">
                                <input name="cyryzs" th:field="*{cyryzs}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">经营状态：</label>
                            <div class="col-sm-8">
                                <select name="jyzt" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SQJW_JYZT')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}" th:field="*{jyzt}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">主管单位：</label>
                            <div class="col-sm-8">
                                <input name="zgdw" th:field="*{zgdw}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">公安机关备案时间：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="gajgbasj" th:value="${#dates.format(unit.gajgbasj, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">三防设施情况：</label>
                            <div class="col-sm-8">
                                <input name="sfss" th:field="*{sfss}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">保卫负责人公民身份号码：</label>
                            <div class="col-sm-8">
                                <input name="bwfzrGmsfhm" th:field="*{bwfzrGmsfhm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">保卫负责人姓名：</label>
                            <div class="col-sm-8">
                                <input name="bwfzrXm" th:field="*{bwfzrXm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">保卫负责人联系电话：</label>
                            <div class="col-sm-8">
                                <input name="bwfzrLxdh" th:field="*{bwfzrLxdh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">互联网审核人：</label>
                            <div class="col-sm-8">
                                <input name="hlwshr" th:field="*{hlwshr}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">互联网审核时间：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="hlwshsj" th:value="${#dates.format(unit.hlwshsj, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位详细地址：</label>
                            <div class="col-sm-8">
                                <input name="dwdz" th:field="*{dwdz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注销时间：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="zxsj" th:value="${#dates.format(unit.zxsj, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注销账号：</label>
                            <div class="col-sm-8">
                                <input name="zxzh" th:field="*{zxzh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注销时间标志：</label>
                            <div class="col-sm-8">
                                <input name="zxbz" th:field="*{zxbz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审批人：</label>
                            <div class="col-sm-8">
                                <input name="spr" th:field="*{spr}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">审批时间：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="spsj" th:value="${#dates.format(unit.spsj, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注销原因：</label>
                            <div class="col-sm-8">
                                <input name="zxyy" th:field="*{zxyy}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注册地址_省市：</label>
                            <div class="col-sm-8">
                                <input name="zcdzSsxqdm" th:field="*{zcdzSsxqdm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注册地址_类行政区域：</label>
                            <div class="col-sm-8">
                                <input name="zcdzLxzqydm" th:field="*{zcdzLxzqydm}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注册地址_详细地址：</label>
                            <div class="col-sm-8">
                                <input name="zcdzQhnxxdz" th:field="*{zcdzQhnxxdz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注册地址_地址名称：</label>
                            <div class="col-sm-8">
                                <input name="zcdzDzmc" th:field="*{zcdzDzmc}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网络检查_检查：</label>
                            <div class="col-sm-8">
                                <input name="wljcZjjchgbz" th:field="*{wljcZjjchgbz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网络检查_最近检查日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="wljcZjjcrq" th:value="${#dates.format(unit.wljcZjjcrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网络检查_下次检查日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="wljcXcjcrq" th:value="${#dates.format(unit.wljcXcjcrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">消防检查_检查：</label>
                            <div class="col-sm-8">
                                <input name="xfjcZjjchgbz" th:field="*{xfjcZjjchgbz}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">消防检查_最近检查日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="xfjcZjjcrq" th:value="${#dates.format(unit.xfjcZjjcrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">消防检查_下次检查日期：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input name="xfjcXcjcrq" th:value="${#dates.format(unit.xfjcXcjcrq, 'yyyy-MM-dd')}"
                                           class="form-control" placeholder="yyyy-MM-dd" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网络检查_检查账户：</label>
                            <div class="col-sm-8">
                                <input name="wljcJczh" th:field="*{wljcJczh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">消防检查_检查账户：</label>
                            <div class="col-sm-8">
                                <input name="xfjcJczh" th:field="*{xfjcJczh}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否重点：</label>
                            <div class="col-sm-8">
                                <select name="sfzd" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SFZD_DQJC')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}"
                                            th:field="*{sfzd}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否定期检查：</label>
                            <div class="col-sm-8">
                                <select id="dqjc" name="sfdqjc" onchange="gradeChange()" class="form-control m-b"
                                        th:with="type=${@dict.getParamValue('SFZD_DQJC')}">
                                    <option th:each="dict : ${type}" th:text="${dict.itemText}"
                                            th:value="${dict.itemValue}"
                                            th:field="*{sfdqjc}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" id="szjczq" style="visibility:hidden">
                            <label class="col-sm-3 control-label">检查周期（天）：</label>
                            <div class="col-sm-8">
                                <input name="jczq" th:field="*{jczq}" class="form-control" type="number"
                                       oninput="value=value.replace(/[^\d]/g,'')">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <i class="fa fa-info-circle"></i> 从业人员
                </div>
                <div class="panel-body">
                    <div th:if="${staffs} ne null" th:each="staff : ${staffs}" class="col-sm-4">
                        <div class="panel panel-primary">
                            <div class="panel-heading" th:text="${staff.xm}"></div>
                            <div class="panel-body">
                                <div style="text-align: center;overflow: hidden;">
                                    <img th:src="(${staff.photo} == null) ? @{/res/img/profile.jpg} : '/sys/common/view/' + @{${staff.photo}}"
                                         style="height: 175px; width: auto;" alt="Staff Image">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4" style="padding-top: 25px;">
                        <div class="panel panel-primary">
                            <div class="panel-body">
                                <div style="text-align: center;" onclick="addStaff()">
                                    <img th:src="@{/res/img/add-plus.png}" style="height: 175px; width: auto;"
                                         alt="add Image">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: ztree-js"/>
<th:block th:include="include :: datetimepicker-js"/>
<script type="text/javascript">
    var prefix = ctx + "control/unit";
    $("#form-unit-edit").validate({
        focusCleanup: true
    });

    function gradeChange() {
        var $sfdqjc = $('#dqjc option:selected');
        if ($sfdqjc.val() == "Y") {
            document.getElementById("szjczq").style.visibility = "visible";
        } else {
            document.getElementById("szjczq").style.visibility = "hidden";
        }
    }

    $(function () {
        var url = ctx + "control/label/treeData";
        var options = {
            id: "tree",
            url: url,
            check: {enable: true},
            expandLevel: 0,
            onCheck: onCheck
        };
        $.tree.init(options);
    });

    function onCheck() {
        $('input[name="bq"]').val(getChecked('id'));
        $('#labelName').val(getChecked('name'));
    }

    function getChecked(column) {
        var nodes = $._tree.getCheckedNodes(true);
        return $.map(nodes, function (row) {
            if (!row.isParent) {
                return row[column]
            }
        }).join();
    }

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-unit-edit').serialize());
        }
    }

    $("input[name='kyrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='tyrq01']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='yyzzyxqQsrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='yyzzyxqJzrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='djsj']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='hlsj']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='zjjcrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='xcjcrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='gajgbasj']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='hlwshsj']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='zxsj']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='spsj']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='wljcZjjcrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='wljcXcjcrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='xfjcZjjcrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='xfjcXcjcrq']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
<script th:inline="javascript">
    function addStaff() {
        $.modal.open("添加从业人员", $.common.setURL("/control/staff/add/" + [[${unit.zagldwbm}]]));
    }
</script>
</body>
</html>
